# -*- encoding=utf8 -*-
__author__ = "Bryan.Chen"

from airtest.core.api import *

auto_setup(__file__)

using("../FlowTest.air")
import FlowTest

# open tcs app
stop_app("com.highlight.mjpe")
start_app("com.highlight.mjpe")
sleep(3.0) # 等待打开应用
# ST.OPDELAY = 0
testCases = [
    {"moduleName": "TCSSwitchServer", "args": {}},
    {"moduleName": "TCSLogin", "args": {}},
    {"moduleName": "TCSPopUpAd", "args": {}},
    {"moduleName": "TCSBindPhone", "args": {}},
    {"moduleName": "TCSQuestionnaire", "args": {}},
    {"moduleName": "TCSCheckIn", "args": {}},
    # 以上是必须的登录流程
    
    # {"moduleName": "TCSAddDiamond", "args": {}},
    # {"moduleName": "TCSAddGoldBean", "args": {}},
    {"moduleName": "TCSEnterClub", "args": {}}
    
    # {"moduleName": "TCSEnterGame", "args": {"gameName": "红包赛"}},
    # {"moduleName": "TCSSignInMatch", "args": {"matchName": "杰哥的海天盛筵私人啪"}},
    # {"moduleName": "TCSWaitMatchStart", "args": {}},
    # {"moduleName": "TCSRedPacketMatch", "args": {}},
]

FlowTest.runTest(testCases)
